Modified: sanitize_input to handle empty POST arrays