You could have this method return Option[SequenceRecord] to avoid any null values.