Check if we have a command to execute.