I think that changing the function name to isNotCustomMetadata() (as suggested in a later comment) fixes this.