small refactor using 'be_empty' rather than eq([]) for readability