The 3-rd argument !empty($data['send_email']) is never used, because the method’s signature contains only 2 parameters:
!empty($data['send_email'])