remove nil models from collection before valid checks