if ($tag->[1]{align} and $tag->[1]{align} eq 'left' and ...) { # do stuff }