Fixed not initialized data variable

Fixed not initialized data variable in the Scope class, which leads to a PHP warnings when using array_key_exists.