removed unnecessary @var since we have instanceof test