fix @var_collection has no method :has_pages?