Added a function called 'assert' for null/false-check.