This check was enough to verify private/protected properties (no need for 2 function calls in the worst case)