Added a check to see if the sender length is greater than 0

Signed-off-by: Eldon McGuinness <eldon.mcguinness@gmail.com>