Stop using NSArray firstObject (which is available since iOS7) to keep support of older SDKs.