Validatin over filter_has_var — removes php warning

Signed-off-by: Michael Granados <michaelgranados@gmail.com>