Make sure hashes in arrays fall to next condition