improved readability of some condition checks in EM engine