Only send notices if notice_type is available. PEP8.