Enviromental variables / PATH checking

is there an option to check for example %PAHT% variable - if directories listed there really exists?

if not, this is my suggestion, to check this