add check for isArray so that strings don't cause an error when calling .filter

 This closes #4
diff --git a/lib/pbxProject.js b/lib/pbxProject.js
index 18033bb..8047d00 100644
--- a/lib/pbxProject.js
+++ b/lib/pbxProject.js
@@ -1110,7 +1110,7 @@
 
         searchPaths = buildSettings[SEARCH_PATHS];
 
-        if (searchPaths) {
+        if (searchPaths && Array.isArray(searchPaths)) {
             var matches = searchPaths.filter(function(p) {
                 return p.indexOf(new_path) > -1;
             });
@@ -1157,7 +1157,7 @@
 
         searchPaths = buildSettings[SEARCH_PATHS];
 
-        if (searchPaths) {
+        if (searchPaths && Array.isArray(searchPaths)) {
             var matches = searchPaths.filter(function(p) {
                 return p.indexOf(new_path) > -1;
             });