add input validation to Collection.remove. fixes #14