To validate associative arrays