Trying to check array values