added new PHPHelper function to search for value in array of objects