public default boolean exists(final String key) {
        return this.keys().contains(key);
    }
Whether the key exists in the memory.

@param key key to search the memory for.
@return whether the key exists
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/computer/Memory.java