Welcome - in this case the first company - 12334486 - has no PSC statements. The second one - 12173467 - has statements. I have linked to the online Companies House site so you can see that.
If you want to find out whether there are statements or not you can either call this endpoint and trap any errors OR if you examine the Company profile - e.g. request:
… and examine the links member of the response (a CompanyProfile resource) for a persons_with_significant_control_statements member there. If there are PSCs you should find a persons_with_significant_control member in links.
Note you can have both statement(s) and a list of PSCs in some cases. Here is an “Overseas Entity” example (linked to the online site):
We made the change to remove the error json when statements were not found for two reasons.
· The error message for failing to retrieve PSC statements was incorrect as it made reference to PSCs instead of statements
· Not having an error json made error handling easier to work with for our internal apps
Thanks for clarifying. Before my script was going of the error and now it breaks down. Would be a simple enough update but was just making sure this is something that was intended,