improve function to check if contact is contact of a current user