make sure command is not empty before calling eval