Use foreach to check associative arrays.