You need to add the following method into the class suggested by Alex:
PHP Code:
protected function isVisible()
{
$return = parent::isVisible();
if ($this->getProduct()->getInventory()->getAvailableAmount() > 10) {
$return = false;
}
return $return;
}
and it should do the trick.
Did not test the code though.