Refactor isEmpty a bit and add isEntitled