Fix for "Warning: strpos(): Empty needle"