[imp] Changed conditional to make it easier to read.. Fixes #1839