angularjs check if array contains object