Prevent PHP notice

This notice arised when searching for just some, specific term. Made this solution according to this issue: