I would do just `return data && data.id;`