Create CheckRightsLoop.php