more readable php syntax for single line if-else