Switches empty() to is_null()