metadata in article api

You should probably use empty instead of isset, it could be set to false.