checking the type for undefined.