Clarify return None using explicit if/else rather than filter