Refactored to using array_diff().