prepareQueryHash will always be present, so don't use existence check.Also, correct copied reference for Manual set handling.That var is false as manual doesn't need that.