Would it be worth having a test with more than one value in the array parameter to ensure it does the right thing...  I'm not 100% sure it does from reading the code...