Changed the variable type of the content to any and removed the required thou null values can be checked too.
Added some functions for null values
Fixed the naming of a variable
Changed the direct variable setting to a check if equal 1 to have a boolean.