Dev Fixed issues using empty on function result.