Corrected a type in isLight and isDark functions