hide WP_ENV constant notice in debug mode

WP_ENV constant in wp debug mode generate this note:
Notice: Use of undefined constant WP_ENV - assumed 'WP_ENV' in
C:\xampp\htdocs\wordpress\wp-content\themes\roots\lib\scripts.php on
line 25
and by new if check solve