Quell'if si verifica solo nel caso il getattribute non restituisca una stringa vuota o null?