Drupal 8 Check Entity Type