$option = "1";
$pageaccess = types_render_field( "page-access", array( "separator" => ", " ) );
$pageaccess_arr = explode(', ', $pageaccess);
if (in_array($option, $pageaccess_arr)) {
// "1" is in the array of checked values
}
I hope this helps and for more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/