Add check to ensure characterInfo is not empty