check that object is list