check emptiness better