Fixed errror when checking for the existence of lambda value