Use isEmpty() here

Authored by mlaurent on Nov 30 2018, 5:57 AM.