Exclude undefined keys