committing this because I find 1/undefined really funny
that's more like it
tidying up if statement