PHP/WordPress — How do I check if Shortcode returns content?

Run the Shortcode through do_shortcode and check what the output contains.

$shortcode_content = do_shortcode( '[ninja_forms_field id=84]' );

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