fixing another conditional statement that was throwing an console error