is_dynamic_sidebar always returns true while using Jetpack visibility

you can use is_active_sidebar('your_sidebar_name or id') instead of is_dynamic_sidebar() to check whether required sidebar has widgets or not.It works for you in this case.

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