unnecessary else - if-clause raises exception