check for collection in cfsFileInput helper

Just added a simple check just in case someone forgets the collection.