I know that it is old code but positive form here is much readable:
```
if date.present? && time.present?
```