change checkPermissionExists to how Elgarl wants it