[All] Formatting and null checks