Fixed bug in distinct() method when comparing array item to 0.