You can also just exit here -- that will save you from wrapping the whole thing in a giant if/else.