Perhaps it would be a good idea to store ``PROPS[prop].subProperties[i]`` in a variable as it is used several times (so that it is clearer to read, and perhaps a bit faster to execute).