PHP Class for strict URL validation