Added isIPad and isIPhone5 checks