The comment says "Skip not custom metadata", and right after that you do a 'continue' if it is a custom metadata.
The name of 'isCustomMetadata' seems ok, it returns true for 'ID', 'LOCATION' etc. and false otherwise.
So, I guess the comment is misleading. Should it be 'Skip custom metadata' ?