As said in one other comment, custom_data nested hashes don't need to have a nested href in them, so this check is necessary.