if($list instanceof HasManyList) {