Condition with lots of options not working