return nil if array has non-numbers