Array filtering/sanitization