Yes, you can check the transaction fee (using raw blockchain units, which we recommend) as follows:
function filtertransaction()
{
var bal=getfilterassetbalances("", true);
var fee=0;
for (var add in bal)
fee-=bal[add];
if (fee < 1000)
return "Insufficient Fee!";
}