Is this safe without using the function isset() ?
if ($_POST['bar'] == 'val') {
without isset() like this
if (isset($_POST['bar'])) {
without it can give you an E_NOTICE error.
Notice: Undefined index: bar in filename on line xx