Fixed divide by zero crash in NSArray -anyObject when called on an empty array