check array and hash