• In the containsElement method, I replaced the null check with the isEmpty method to enhance readability.
  • In the hasText method, I substituted the length check with isEmpty to reduce code duplication.

Comment From: sbrannen

Hi @dukbong,

Thanks for the proposal; however, we are happy with the current implementation of these internal utility methods.

In light of that, I am closing this PR.

Regards,

Sam