Only perform access checks if 'check' is set.