Will this if statement work for an empty array? ACK otherwise