Removed checks for nil in favor or simpler condition statements for themes.
In ThemesObj, renamed JSON parameter to attributesArray and removed method for objectAtIndexedSubscript