Fixes #6. Added a method to check for protected