Add existence check for param before using it