Added a `isEOF` function

This allows us to see if cin has reached EOF. Previously, there was no
way to know whether or not cin will simply return an empty string.