Check if variable exists in cache before set()