Checking if case ID is not null