I can’t really give you a better way to debug because I cannot recreate the issue that you’re seeing.
Is get_field() returning and empty array, false
or NULL
, there is a difference. false
could mean that the field/data exists but is empty, although I would expect it to be returning an empty array. NULL
would mean that the value/data does not exist (is not present in the database) for the post.