code: public boolean enabled() {
          boolean isEnabled = false;
          try {
              // adding additional check for disabled attribute, due to issues with safari
              isEnabled = (element.getWebElement().isEnabled() && !element.get().allAttributes().containsKey("disabled"));
          } catch (NullPointerException | NoSuchElementException e) {
              // Null pointer means the element was deleted, and there has no attributes. No such element means the same thing
              log.info(e);
          }
          return isEnabled;
      }
docs: Determines whether the element is enabled or not.
  
  @return Boolean: whether the element is enabled or not