Refactored the exception handling for the apostrophe filter to use
Array.some()