You should use the particular field that status will be in: `if info and info.status == status`