Adding checks for null