fixing if in javascript
javascript refactor
verifying if expirationDate is null