function exists(pattern-or-property)

Returns true if a match for the pattern exists in the graph, or the property exists in the node, relationship or map.

Arguments:
pattern-or-property: A pattern or a property (in the form 'variable.prop').

Example Query:
    MATCH (n)
    WHERE EXISTS(n.name)
    RETURN n.name AS name, EXISTS((n)-[:MARRIED]->()) AS is_married