Refactor API: authorize() to isAuthorized()

As stated in the inline comments the function to check if someone is authorized needed to be renamed.