Check also if an obtained unique ID is not null