ParseError thrown

syntax error, unexpected '||' (T_BOOLEAN_OR)