Check a revision exists for a node
Use getRevisionId(); The revision identifier of the entity, or NULL if the entity does not have a revision identifier.

https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21RevisionableInterface.php/function/RevisionableInterface%3A%3AgetRevisionId/8.2.x