Added input check is null because I can't be relied upon to actually put input into the program