Changed iOS6 check for performance and convenience reasons