check if priority var is set