Amended variable check for the case with one variable