Resolves #2. Use negation instead of strict equality.

This allows the function to be used on arrays that may or may not have more than one element.