Add checkPermission Utility