added check for valid handles to collections