+1 commit. isEmpty in factory.