#371 Updated with set type array for self::protected_urls