This feels the wrong way around to me. I think the code should look more like: 

```
if (is.null(input$foo)) stopMissingDep("Check at least one letter.")
if (input$bar == "") stopMissingDep("Please choose a state.")
```