I didn't have a problem reading it the way it is now and I don't see a need to initialize extra variable ($hasMatch) just for the purpose of keeping a return result of simple call to a function.