solved if-cache-present condition