removed unnecessary guard which caused problem with using a hash in ng-options