Check for _needNear produces errors because "X" in _array can't be used on a string.

My previous fix included a broken default part.. now it's working as inteded without any extra stuff.
Merge pull request #593 from ctcDNightmare/patch-2

Check for _needNear produces errors because "X" in _array can't be used ...

Thanks