Checking if ids is present