Check filter defined or not?

has_filter() checks if any filter has been registered for a hook.

This is what I want really

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)