[kompiler.py] Remove redundant check

Remove redundant check

Was there a reason for this? a limitation of python, like the extra elses?

(I realise i should've opened a PR for the other commit)