Changed function name methodSecured to isMethodSecured