Show only key in array of objects if no value provided