Removed unncessary 'if' check that @kyrylo pointed out.