• Remove any unnecessary exception throws to streamline the code.
  • Use Lambda Expression

Comment From: wilkinsona

Thanks, @arefbehboudi.