replace len check with nil for default opts