iphone 5 detection function