Check method accessiblity before invoking