You are here

exists

exists() checks whether the node exists in the repository.

Returns

Returns a boolean, true if the node exists, false otherwise.

Example

if (node.exists()){
  ...
}