More understandable if clause

Original if/else block is a little confusing...