well i guess i should change the method signature to have an empty array instead of null as a default value.