I'm thinking the following should be a better check:
```erb
<% if @pxeserver && @pxeserver != '' && @pxefilename && @pxefilename != '' -%>
```