Add rudimentary conditionals around undefined element positions
Merge pull request #6 from jordanmccullough/error-catching

Add rudimentary conditionals around undefined element positions