Got rid of a notice from line 32

If $timeout is empty a notice is displayed in line 32. Added a check
for empty to get rid of it