Return None instead of AttributeError