You code could be cleaned up a lot too, chekcing i...
# getting-started
k
You code could be cleaned up a lot too, chekcing if it's null and throwing an exception otherwise is just
!!
, and use
find
or
first
instead of a for loop.