Can now handle if model_path returns undefined