improve performance in empty and remove methods
v 1.0.4