why don't you use the `strpos` way of doing this which is commented a few lines below?