Using triple equals for preg_match evaluation.
Replacing simple preg_match with a less expensive substr check.