Check for id in state params.