removed unecessary nil check in guard clause.