contao/core — pull request #4404 by Toflar (2012-05-30 18:13:17+00:00)
Title: added Widget::isEmpty() that can be overridden by the child classes

This allows the developers of widgets to tell themselves if a widget is empty or not.

I could do something like this then to check if a user has entered data in another table:
``` php
mandatory)
{
return false;
}

$objResultFromAnywhere = $this->Database->query('SELECT COUNT(id) FROM table');
return (boolean) $objResultFromAnywhere->numRows;
}
}
```

Hope you like it :-)