Fixed bool conversion and not operator
Lists are implicitly converted to bools