Fixes PHP Warning:  strpos(): Empty needle