lets remove 'assert' and replace with nil check for consistency with nil check from other methods