replacing nil for empty hash as default parameter os cache method