M: if undefined opt means false, use !!opt