MDL-26119 fixing regression caused by previous merge in PULL-294
MDL-26119 fixing regression caused by previous merge in PULL-294

We can not use empty() on function directly, the PHP docs were incorrect.

dilawar/moodle