Checking for the ident last should make that if statement more efficient