Check for presence of both id and name