Move isSuccessor() offline, change it to use std::find.