Issue #3 - Null pointer for empty arrays