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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users