resolves #32; add empty() method