Replace is_null() and !is_null() with blank() and filled() helper functions for better readability and Laravel idiomatic style.