fixed a bug causing a crash when calling the remove function on the collection base class - added a check to ensure a callback existed before attempting execute it