I’m hit with: undefined constant register_sidebar. Once in debug mode? [closed]

the use of function_exists is like that

function_exists("register_sidebar")