Maybe a good solution for automatic generated aliases

Works in my installation:
- will not be executed if alias is not posted
- will only be executed if alias is empty or not valid
- will check for existing aliases