Replace DataObject->isNotNull() helper with closure

Now possible since we support PHP 5.3+ only.