now using if isset() instead of if ==. slight faster.