isTrashed(): changed != null to ! is_null(..)