Query in firebase returns some error function, I'm asking a question, but I will not always find something, how do I know if it's null?
vm.settlements.child('liqui')
.orderByChild("rut")
.equalTo(employee.rut)
.on("child_added", function (snapshot) {
$scope.keyExist = snapshot.val();
$scope.keyExistID = snapshot.key;
});