fixed extractor for 'empty' values like 0 or empty array