null checking for TCollection