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:
MATCH (n) WHERE EXISTS(n.name) RETURN n.name AS name, EXISTS((n)-[:MARRIED]->()) AS is_married