Hi there, 
This is a follow up question from my Page/Category question. 
https://processwire.com/talk/topic/10738-categories-not-visible-incorrect-setup/ 
I have a reference to the Category page I want to test membership for : 
$catgoryPage = $pages->find("parent.id=[path=/categories/, include=unpublished], title=$category"); 
I want to test if a particular page's field, Category (type:Page Fieldtype) == $categoryPage. 
I've been trying for the last hour on how to test membership for this page object without any success. 
I have tried  
1) using the find method but I'm not sure how I can describe a field category == $categoryPage 
2) looping through a PageArray, get the fields Array and using the has method on it. 
$testPages->fields->get("category")->has($categoryPage) 
3) I have tried to search the forums but have found none related to my issue. 
Am I approaching this problem incorrectly or is there a simple answer to this? 
Thanks in advance