Compare ID's length instead of null