WordPress at a glance
Home Functions Theme (template) Settings (customizer)

Settings (customizer) (category)

has_custom_header()

Check whether a custom header is set or not.

is_customize_preview()

Checks whether the site is being previewed in the WordPress Customizer (the visual theme settings page). Conditional tag.