Try checking isEmpty too