Lets put the missing strings aside for a moment, because this will only be relevant during development. After that, i have all the strings needed available.
I think, the crucial part is, how expensive is the function with
if(object[name]){
return object[name];
}
compared to the direct acces to the variable.
Do you have any knowledge about that?
Thanks