check for valid collection