simplify iOS 7 check