check if permissions exists