Optimized elsif conditionals