Finished first Scala exercise.
Use isEmpty where applicable.

- Rename parameter line to poke.