function isMemberOfOwnerCompany($userId){ $companyId = Company::getOwnerCompany(); $userCompanyId = User::getCompany($userId); return ($companyId === $userCompanyId); } // Usage example: if (isMemberOfOwnerCompany($currentUserId)){ // Allow access to sensitive information }In this example, we define our own function isMemberOfOwnerCompany that takes a userId parameter. The function first retrieves the owner company ID using the Company::getOwnerCompany() method, and then retrieves the user's company ID using the User::getCompany() method. If the IDs match, the function returns true, indicating that the user is a member of the owner company. This function does not use any external package library and can be easily integrated into any PHP project.