Modified where REST API handles empty variables.