Use angular.equals for greater readability