Implement has(id) in DAO