wordpress’s backwards comparison style e.g. if ('' == $some_variable) {} explained: when doing logical comparisons always put the variable on the right side. If you forget an equal sign it’ll throw a parse error instead of just evaluating true and executing the statement.