replace with centralized logic for "is nil or false"
replace with centralized logic for "is nil or false"