function to validate checker is not nil and is enabled.
Created by: mollylogue
When going through past PRs I noticed that I'd missed a check for if the sub-repo permissions checker was nil
or not. I figured having a function to always call before using the checker would help catch this type of thing in the future.