Fix glitch with comparison operator in newer version of PHP