Declare -[NSArray firstObject] in a category.

Fixes #42
Remove redundant count checks.