Use isEmpty here too

Authored by mlaurent on Nov 29 2018, 12:25 PM.