core, use isEmpty() instead of empty quotes

Authored by jjazeix on May 27 2019, 9:24 AM.