set if statement to check for ios device