if you define the scope variable with `&`, you don't need to check if the variable contains a function or not. 
Just call `$scope.pickerCallback(dateObj.date)`