It's possible, getattr raises an exception anyway if the attribute is not present. Is pretty much the same.