Removed firstObject method on NSArray category because it was added by Apple in iOS 4.