Check for non-empty array before looping through the arrays.
Cleaned up source readability for parameters output.  Fixed missing </span> closing tag for required parameter. Added <span> around parameter description.
Check for existing array keys before echoing their values.
Source code cleanup, standardization.
Check for array values before using them.