Removed unnecessary block
!== undefined check