The PHP `==` and `!=` operators do insane type conversions to check equality. The should be replaced with `===` and `!==`.