Added `isProtected` method.