fixed typo in header file and added NSArray extension