I'd prefer to create a single wrapper for URL validation (the filter_var workaround), like an `@access private` _elgg_validate_url().