Only run command when input is given